from flask import Flask, render_template

app = Flask(__name__)


@app.route("/")
def helloworld():
    # 1. 定义各种类型的变量
    number = 10
    str = "木婉清"
    tuple = (1, 2, 3, 4, 5)
    list = [6, 7, 8, 9, 10]
    dict = {"name": "木婉清", "age": 23}
    # 2. 携带变量到模板中展示
    return render_template(
        "Ademo02_other_program.html",
        number=number,
        str=str,
        tuple=tuple,
        list=list,
        dict=dict,
    )


if __name__ == "__main__":
    app.run(debug=True)
